package com.gpframework.module.common.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gpframework.module.common.domain.CommonWxAppletInfo;
import com.gpframework.module.common.domain.req.CommonWxAppletInfoReq;
import com.gpframework.module.common.domain.vo.CommonWxAppletInfoVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName CommonWxAppletInfo
 * @Author gpframework
 * @Date 2022-04-07
 * @Version 1.0.0
 * @Description 微信小程序信息Mapper接口
 */
public interface CommonWxAppletInfoMapper extends BaseMapper<CommonWxAppletInfo> {

    /**
     * 列表
     *
     * @param lqw
     * @return
     */
    List<CommonWxAppletInfoVo> listVo(@Param("ew") QueryWrapper<CommonWxAppletInfo> lqw);

    /**
     * 对象
     *
     * @param id
     * @return
     */
    CommonWxAppletInfoVo getVo(@Param("id") Long id);

    CommonWxAppletInfoVo listPayConfigInfo(@Param("ew") QueryWrapper<CommonWxAppletInfo> lqw);

    /**
     * 根据品牌id和微信类型获取品牌微信配置信息
     *
     * @param wxAppletInfoReq
     * @return
     */
    CommonWxAppletInfoVo findByBrandIdAndWxType(CommonWxAppletInfoReq wxAppletInfoReq);
}
